﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="dsMonHoc" targetNamespace="http://tempuri.org/dsMonHoc.xsd" xmlns:mstns="http://tempuri.org/dsMonHoc.xsd" xmlns="http://tempuri.org/dsMonHoc.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="dynamicConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="dynamicConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.frm_view.Properties.Settings.GlobalReference.Default.dynamicConnectionString" Provider="Microsoft.SqlServerCe.Client.4.0" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tblMonHocTableAdapter" GeneratorDataComponentClassName="tblMonHocTableAdapter" Name="tblMonHoc" UserDataComponentName="tblMonHocTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="dynamicConnectionString (Settings)" DbObjectName="tblMonHoc" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [tblMonHoc] WHERE (([MaMH] = @Original_MaMH) AND ((@IsNull_TenMonHoc = 1 AND [TenMonHoc] IS NULL) OR ([TenMonHoc] = @Original_TenMonHoc)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_MaMH" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MaMH" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TenMonHoc" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TenMonHoc" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TenMonHoc" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TenMonHoc" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [tblMonHoc] ([MaMH], [TenMonHoc]) VALUES (@MaMH, @TenMonHoc)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MaMH" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MaMH" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TenMonHoc" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TenMonHoc" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT [MaMH], [TenMonHoc] FROM [tblMonHoc]</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [tblMonHoc] SET [MaMH] = @MaMH, [TenMonHoc] = @TenMonHoc WHERE (([MaMH] = @Original_MaMH) AND ((@IsNull_TenMonHoc = 1 AND [TenMonHoc] IS NULL) OR ([TenMonHoc] = @Original_TenMonHoc)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MaMH" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MaMH" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TenMonHoc" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TenMonHoc" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_MaMH" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MaMH" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TenMonHoc" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TenMonHoc" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TenMonHoc" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TenMonHoc" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="MaMH" DataSetColumn="MaMH" />
              <Mapping SourceColumn="TenMonHoc" DataSetColumn="TenMonHoc" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="dynamicConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="DeleteQuery" Modifier="Public" Name="DeleteQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="DeleteQuery">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>DELETE FROM tblMonHoc
WHERE  MaMH = @MaMH</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="MaMH" ColumnName="MaMH" DataSourceName="tblMonHoc" DataTypeServer="nvarchar(20)" DbType="String" Direction="Input" ParameterName="@MaMH" Precision="0" ProviderType="NVarChar" Scale="0" Size="20" SourceColumn="MaMH" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
              </DbSource>
              <DbSource ConnectionRef="dynamicConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="UpdateQuery" Modifier="Public" Name="UpdateQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="UpdateQuery">
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>UPDATE       tblMonHoc
SET                MaMH = @MaMH, TenMonHoc = @TenMonHoc
WHERE        (MaMH = @OMaMH)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="MaMH" ColumnName="MaMH" DataSourceName="tblMonHoc" DataTypeServer="nvarchar(20)" DbType="String" Direction="Input" ParameterName="@MaMH" Precision="0" ProviderType="NVarChar" Scale="0" Size="20" SourceColumn="MaMH" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="TenMonHoc" ColumnName="TenMonHoc" DataSourceName="tblMonHoc" DataTypeServer="nvarchar(250)" DbType="String" Direction="Input" ParameterName="@TenMonHoc" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumn="TenMonHoc" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="OMaMH" ColumnName="MaMH" DataSourceName="tblMonHoc" DataTypeServer="nvarchar(20)" DbType="String" Direction="Input" ParameterName="@OMaMH" Precision="0" ProviderType="NVarChar" Scale="0" Size="20" SourceColumn="MaMH" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="dsMonHoc" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="dsMonHoc" msprop:Generator_UserDSName="dsMonHoc">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="tblMonHoc" msprop:Generator_TableClassName="tblMonHocDataTable" msprop:Generator_TableVarName="tabletblMonHoc" msprop:Generator_RowChangedName="tblMonHocRowChanged" msprop:Generator_TablePropName="tblMonHoc" msprop:Generator_RowDeletingName="tblMonHocRowDeleting" msprop:Generator_RowChangingName="tblMonHocRowChanging" msprop:Generator_RowEvHandlerName="tblMonHocRowChangeEventHandler" msprop:Generator_RowDeletedName="tblMonHocRowDeleted" msprop:Generator_RowClassName="tblMonHocRow" msprop:Generator_UserTableName="tblMonHoc" msprop:Generator_RowEvArgName="tblMonHocRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="MaMH" msprop:Generator_ColumnVarNameInTable="columnMaMH" msprop:Generator_ColumnPropNameInRow="MaMH" msprop:Generator_ColumnPropNameInTable="MaMHColumn" msprop:Generator_UserColumnName="MaMH">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TenMonHoc" msprop:Generator_ColumnVarNameInTable="columnTenMonHoc" msprop:Generator_ColumnPropNameInRow="TenMonHoc" msprop:Generator_ColumnPropNameInTable="TenMonHocColumn" msprop:Generator_UserColumnName="TenMonHoc" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="250" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1">
      <xs:selector xpath=".//mstns:tblMonHoc" />
      <xs:field xpath="mstns:TenMonHoc" />
    </xs:unique>
    <xs:unique name="Constraint2" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:tblMonHoc" />
      <xs:field xpath="mstns:MaMH" />
    </xs:unique>
  </xs:element>
</xs:schema>